package com.bamanker.cloudsys.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author bamanker
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema
@TableName("p_order")
public class Order {

    private Integer id;

    /**
     * 用户ID
     */

    private Long userId;

    /**
     * 商品ID
     */

    private Long productId;

    /**
     * 订单状态
     */
    private int status;

    /**
     * 数量
     */
    private Integer amount;

    /**
     * 总金额
     */
    private Double totalPrice;

    public Order(Long userId, Long productId, int status, Integer amount)
    {
        this.userId = userId;
        this.productId = productId;
        this.status = status;
        this.amount = amount;
    }

}
